package com.spring.hed.factory.method;

import java.math.BigDecimal;

public class Size {
    public static void main(String[] args) {
        String s = SizeConverterTool.convertBytes(200704, true);
        System.out.println(s.replace("MB","").trim());
        BigDecimal a = new BigDecimal(s.replace("MB",""));
        BigDecimal b = new BigDecimal("1024");
        System.out.println(
               a.divide(b,2).toString() );
    }
}
